{extend name="base:base" /}
{block name="body"}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card layui-form">
                <form method="get">
                    <div class="layui-card-body">
                        <input type="hidden" name="category" value="<?php echo input('get.category', ''); ?>" />

                        <div class="layui-input-inline">
                            <input type="text" name="keyword" placeholder="订单号" autocomplete="off" value="{$Think.get.keyword}"  class="layui-input" />
                        </div>
                        <button class="layui-btn layui-btn-normal" lay-submit><i class="layui-icon"></i></button>
                    </div>


                    <div class="layui-card-body">
                        <table lay-even="" class="layui-table">
                            {$tpl_list}
                        </table>
                    </div>
                    <div class="layui-card-body">
                        <div class="page pull-right">
                            {$page}
                        </div>
                        <button class="layui-btn layui-btn-danger" lay-submit lay-filter="button_submit" href="<?php echo url('admin/order/service_delete'); ?>" >删除</button>     
                        <div class="layui-input-inline">
                            <select name="set_status" lay-filter="set_field" href="<?php echo url('service_status_change'); ?>">
                                <option value="">状态变更</option>
                                <?php
                                $status = [
                                        ['id' => 0, 'name' => '待处理'],
                                        ['id' => 1, 'name' => '处理中'],
                                        ['id' => 10, 'name' => '处理完成'],
                                        ['id' => -1, 'name' => '用户撤消'],
                                ];
                                foreach ($status as $key => $value) {
                                    ?>
                                    <option value="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></option>
                                <?php } ?>

                            </select>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{/block}

